package com.heima.apis.article.fallback;

import com.heima.apis.article.IArticleClient;
import com.heima.model.article.dtos.ArticleDto;
import com.heima.model.article.pojos.ApArticleConfig;
import com.heima.model.common.dtos.PageResponseResult;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.common.enums.AppHttpCodeEnum;
import com.heima.model.wemedia.dtos.ManageDto;
import com.heima.model.wemedia.vos.ManageVo;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class IArticleClientFallBack implements IArticleClient {
    @Override
    public ResponseResult saveArticle(ArticleDto dto) {
        return ResponseResult.errorResult(AppHttpCodeEnum.SERVER_ERROR,"数据获取失败");
    }

    @Override
    public PageResponseResult getNewsList(ManageDto dto) {
        return (PageResponseResult) PageResponseResult.errorResult(AppHttpCodeEnum.SERVER_ERROR);
    }

    @Override
    public String getIsComment(Long articleId) {
        return null;
    }

    @Override
    public void getArticleConfig(Long articleId, int start) {
        return;
    }


}
